﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/MasterPages/Site.Master" Inherits="RushTracker.Web.UI.RushTrackerViewPage, RushTracker.Web" %>

<asp:Content runat="server" ContentPlaceHolderID="mainContent">
    <div class="box">
        <h2>Upload torrent</h2>
        
        <% using (Html.BeginForm("Upload", "Torrents", FormMethod.Post, new { @class = "standardform", enctype = "multipart/form-data" }))
           { %>
        <div class="boxcontent">
            <table>
                <tr>
                    <td style="width: 150px;">Choose file</td>
                    <td style="width: 400px;"><input type="file" name="torrentfile" id="torrentfile" size="50" /></td>
                    <td class="hint">The torrent file to upload</td>
                </tr>
                <tr>
                    <td colspan="3" style="height: 15px;"></td>
                </tr>
                <tr>
                    <td>Name</td>
                    <td><%= Html.TextBox("torrentname", "", new { @class = "fullwidth" }) %></td>
                    <td class="hint">The name of the torrent. Leave blank to use the filename.</td>
                </tr>
                <tr>
                    <td>Description</td>
                    <td><%= Html.TextArea("torrentdescription", new { @class = "fullwidth", style = "height: 300px;" }) %></td>
                    <td class="hint">Information about the torrent</td>
                </tr>
                <tr>
                    <td colspan="3" style="height: 15px;"></td>
                </tr>
                <tr>
                    <td>Category</td>
                    <td><%= Html.DropDownList("torrentcategories")  %></td>
                    <td class="hint">The category into which the torrent will be placed</td>
                </tr>
                <tr>
                    <td>Tags</td>
                    <td><%= Html.TextBox("torrenttags", "",  new { @class = "fullwidth" }) %></td>
                    <td class="hint">A comma-separated list with tags to associate with this torrent</td>
                </tr>
            </table>
        </div>
        
        <div class="boxfooter">
            <input type="submit" value="Commence upload sequence" />
        </div>m
        
        <% } %>
    </div>
</asp:Content>